{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "915b8346",
   "metadata": {},
   "source": [
    "### 上周回顾"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c85faef2",
   "metadata": {},
   "source": [
    "* python运行hello world+观察标准库"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2b246bc9",
   "metadata": {},
   "source": [
    "### 本周学习内容\n",
    "#### 1. [github education packages](https://education.github.com/pack)\n",
    "* 注册学生账号，获取python激活邮箱，为下周可以使用pycharm做准备\n",
    "#### 2. [pycharm下载官网](https://www.jetbrains.com/pycharm/download/#section=windows)安装和jupyter notebook的安装学习\n",
    "* 注意事项：安装专业版\n",
    "#### 3. 主要学习了jupyter notebook的使用\n",
    "* [官网](https://jupter.org/)可以尝试体验，及对jupyter 有具体介绍\n",
    "* 如何在自己电脑打开jupyter notebook (cmd中直接执行jupyter notebook )\n",
    "* jupyter notebook 可以做代码的系统管理，学到了每周如何整理自己的学习内容\n",
    "#### 4. 快速开始(python项目一,奇数中选择指定的时间minute)\n",
    "* 变量?\n",
    "* if else"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "7201df7e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "时间是奇数,时间在odds的数据中\n"
     ]
    }
   ],
   "source": [
    "# 课本代码(项目一，从奇数中选择对应的时间节点)\n",
    "from datetime import datetime\n",
    "odds = [1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59]\n",
    "# datetime.today (). minute 当前的时间的分钟\n",
    "right_this_minute = datetime.today().minute\n",
    "\n",
    "if right_this_minute in odds: \n",
    "    print (\"时间是奇数,时间在odds的数据中\")\n",
    "else: \n",
    "    print(\"Not an odd minute.\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8252b89d",
   "metadata": {},
   "source": [
    "#### 5. 变量"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "a83e02d5",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "ZhiChao ZhiChao\n",
      " What is the value of name2 now?\n"
     ]
    }
   ],
   "source": [
    "name = \"ZhiChao\"\n",
    "name2 = name \n",
    "print(name,name2)\n",
    "name = \" Han-Teng \"\n",
    "print(\" What is the value of name2 now?\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1a17808b",
   "metadata": {},
   "source": [
    "#### 6.if else条件判断"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "28a46a50",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
